package com.example.springbootNetty.controller;

import com.example.springbootNetty.entity.SysUser;
import com.example.springbootNetty.netty.annotation.SocketController;
import com.example.springbootNetty.netty.annotation.SocketMapping;


/**
 * @Author: Kevin
 * @Date: 2022/1/24 15:45
 */
@SocketController
@SocketMapping("/login")
public class LoginController {

    @SocketMapping("/login")
    public String login(SysUser sysUser) {
        System.out.println(sysUser.getUsername());
        return "ok";
    }
}
